Electronic structure of amorphous carbon