Analysis of the harmonic vibrations of a beam with a breathing crack