A finite-difference formulation of elastic rod for the design of actively bent structures. (15th June 2016)