Measurement of the Polarization in the Decays Bd → J/ψ K*0 and Bs → J/ψ φ