Quantum mechanics of a particle in an accelerated frame and the equivalence principle