Measurement of the electric quadrupole moments of CO 2 , CO and N 2