Calculation of the bandgap and of the type of interband transitions in tetrahedral amorphous carbon using electron energy loss spectroscopy