Spectropolarimetric measurements of the mean longitudinal magnetic field of chemically peculiar stars II. Phase relating the magnetic and luminosity variabilities