Mechanical properties of hard carbon films