First-Principles Investigation on Structural and Electronic Properties of Ferromagnetic Fe2P4O12