Differential scanning calorimetry studies on structural phase transitions and molecular motions in (CH3NH3)2MBr4 and [(CH3)2NH2]2MBr4 (M = Zn, Cd, and Hg)