Investigation on diamondlike carbon films: Structure, properties and doping effect