Thermodynamic investigations on K3Ln5(PO4)6 (Ln = Eu and Gd) compounds