Domain-Engineered Ferroelectric Crystals for Nonlinear and Quantum Optics