Amino acid template-synthesis and characterization of three-dimensional metal phosphate/phosphite networks