Quadrupole moments and the structure of the even titanium and chromium nuclei