A derivation of the Doppler factor in the Liénard–Wiechert potentials