Simulation of coherent phase optical time-domain reflectometry