The energy calibration for the solar neutrino analysis of all three phases of the Sudbury Neutrino Observatory