Optimal Control of a Soft CyberOctopus Arm