Photoregulation of the optical properties of comb‐shaped polymers with mesogenic side groups