Hydrodynamical moving-mesh simulations of the tidal disruption of stars by supermassive black holes