Midgap states in nitrogen doped diamond-like amorphous carbon