The electronic structure of nitrogen dioxide