Optical and electrical characteristics of amorphous diamond films