A versatile nitrogen-doped carbon coating strategy to improve the electrochemical performance of LiFePO4 cathodes for lithium-ion batteries