New acid medium sol-gel synthesis of metal phosphates