Phase transitions in rhombohedral (CH3NH3)2MCl6 crystals as revealed by the NQR of chlorine