Failure-mode scale transitions in RC and PC beams