Electronic Structure and Optical Properties of MgS