Sequential Three-Dimensional Nonlinear Photonic Structures for Efficient and Switchable Nonlinear Beam Shaping