Finite element analysis of a crack and determination of crack opening and closing stresses in fatigue loading for materials having different work hardening exponents