The light curve of P/Halley and the rotation of its nucleus