Generalized nonlinear couplings in the relativistic mean-field model