Quantum mechanics and the equivalence principle