Structural, Electronic, and Optical Properties of N-doped SnO2