Optimal Control of Material Micro-Structures