EPR detection and study of new phase transitions in Mg(ClO4)2·6H2O