Characterization and optical properties of diamondlike carbon prepared by electron cyclotron resonance plasma