Large momentum expansion of two-loop self-energy diagrams with arbitrary masses