Fast deposition of amorphous carbon and silicon layers