The effect of particle size and porosity on spectral contrast in the mid-infrared