Cohesive crack analysis of size effect