S-shaped bifurcation curves for nonlinear two-parameter problems