Optimal control solutions for crystal shape manipulation