Two-loop calculations in the large quark mass expansion in the framework of the QCD sum rules method