Thermodynamic and structural investigation of caesium-nickel monophosphate CsNiPO4