Nanocomposites of Spiropyran-Functionalized Polymers and Upconversion Nanoparticles for Controlled Release Stimulated by Near-Infrared Light and pH