Obama: Americans need to shift religious views to accept gay marriage