Generalized Dirac Equation for a particle in a gravitational field