Electrical and photoelectrical characteristics of heterostructures with amorphous carbon films