Lagrangian Properties and Control of Soft Robots Modeled with Discrete Cosserat Rods