Stick-slip analysis in vibrating two-layer beams with frictional interface