Phase-gradient algorithm as an optimal estimator of the phase derivative | Synapse