Electron paramagnetic resonance studies of structural phase transitions in M II, M IV F6 6H2O type compounds