Measurement of D* photoproduction at three different centre-of-mass energies at HERA