Biologically-Inspired Self-Assembly of Two-Dimensional Shapes Using Global-to-Local Compilation