MATTER EFFECTS IN ATMOSPHERIC NEUTRINO OSCILLATIONS