π bands and gap states from optical absorption and electron-spin-resonance studies on amorphous carbon and amorphous hydrogenated carbon films