Critical sections for punching and beam shears