Electrical properties and thermal stability of FePO4 glasses and nanomaterials