Perturbation theory in terms of superfields and its application to gauge theories