Ermakov systems, nonlinear superposition, and solutions of nonlinear equations of motion