Self‐consistent model for two‐dimensional accumulation layer states in resonant tunneling devices