New approach to one-loop calculations in gauge theories