Theory of electronic and optical properties of 3c-SiC