Structural and dynamical heterogeneities in two-dimensional melting