tetrahedron method implemented for electron self-energy calculation