Heavy mass expansion, light-by-light scattering and the anomalous magnetic moment of the muon