Structure and properties of transparent and hard carbon films