Scaling effects in the flexural response and failure of composite beams