Prediction of optical properties of amorphous tetrahedrally bonded materials