Radiation tolerance of iron phosphate: a study of amorphous and crystalline structures