Nonlinear vortex-induced vibrations of slightly curved pipes conveying fluid in steady and oscillatory flows