Versatile Synthesis of Carbon-Rich LiFePO4 Enhancing Its Electrochemical Properties