Neutrino oscillations in extended theories of gravity