A general solution procedure for vibrations of systems with cubic nonlinearities and nonlinear/time-dependent internal boundary conditions