Sculpted light and matter for nanobiophotonics and two-photon optogenetics