The cohesive/overlapping crack model for plain and RC beams: scale effects on cracking and crushing failures