A structural study of sol-gel and melt-quenched phosphate-based glasses