Dimensionally reduced nonlinear solids with general loads and constitutive laws: Theory and finite element formulation for rod-like bodies