On modeling fracture of ferritic steels due to hydrogen embrittlement