Improved derivation of phosphate potentials at different temperatures