Nonlinear dynamics of shafts rotating at nonconstant spin rates