Energy Shaping Control of a Muscular Octopus Arm Moving in Three Dimensions