Response of two-layer composite beams with interlayer slip and damaging interfaces