Spectral modulation of a bistable liquid-crystal photonic structure by the polarization effect