The metallicity gradient of M 33: chemical abundances of H ii regions