Characterization of heterojunction devices constructed by amorphous diamondlike films on silicon