Matter enhanced three flavor oscillations and the solar neutrino problem