Influence of aerosols on polarization of skylight in gaseous absorption bands