Self‐consistent calculation of electronic states in AlGaAs/GaAs/AlGaAs selectively doped double‐heterojunction systems under electric fields