Rare earth for lithium iron phosphate batteries