Characterization and thermal behavior of amorphous rare earth phosphates