Gravitational effects on the neutrino oscillation in vacuum