On the use of the phase closure principle to calculate the natural frequencies of a rod or beam with nonlinear boundaries