A generalized Timoshenko beam with embedded rotation discontinuity