Relative measurement of the quadrupole moments of the first excited states of the even isotopes of Ru, Pd and Cd