Solar spectral beam splitting for photochemical conversion and polygeneration