The influence of the deformation on the two-dimensional electron gas density in GaN–AlGaN heterostructures