Optical and electronic properties of amorphous diamond