Analysis of energy states of two‐dimensional electron gas taking into account the nonparabolicity of the conduction band