Ab Initio Calculation of the Electronic Structure and Optical Properties of Diamond Using the Discrete Variational Method