A global search algorithm for phase transition pathways in computer-aided nano-design