Loop calculations in confined QCD II. The self energy of massive quarks