Effect of non-ideal boundary conditions on the vibrations of continuous systems