Structural studies and electronic properties of diamond-like amorphous carbon