Direct characterization of young giant exoplanets at high spectral resolution by coupling SPHERE and CRIRES+