Thermochemistry of Multiferroic Organic-Inorganic Hybrid Perovskites [(CH3)2NH2][M(HCOO)3] (M = Mn, Co, Ni, and Zn).