Dislocation scattering in a two-dimensional electron gas