Hard TeV spectra of blazars and the constraints to the infrared intergalactic background