Tomography of the QGP by heavy quarks