Buckling of coped steel beams and steel beams with partial endplates