Frequency-domain phase measurement algorithms for distribution systems