Light-Assisted Generation of Tailored Ferroelectric Domain Structures