Multiscale design and optimization of polymer-based photonic crystals for solar shielding