Using classical cepheids to study the far side of the milky way disk : I. Spectroscopic classification and the metallicity gradient