Using crystals and light, scientists unlock new ways to grow materials on-demand