Preparation and properties of amorphous carbon and hydrocarbon films