Supernova neutrinos: Earth matter e ects and neutrino mass spectrum