Interdependency of optical constants in a-C and a-C:H thin films interpreted in light of the density of electronic states