High-performance lithium iron phosphate with phosphorus-doped carbon layers for lithium ion batteries