Transmission of light through an optical filter of a one-dimensional photonic crystal: application to the solar thermophotovoltaic system