String techniques for the calculation of renormalization constants in field theory