A direct calculation of the resonance tunneling in metal–insulator–metal tunnel junctions