Low-temperature synthesis and electrochemical properties of aliovalently-doped phosphates and spinel oxides