Convex Optimization for Shape Manipulation of Crystal Populations