The effect of freezing on the composition of supercooled droplets—I. Retention of HCl, HNO3, NH3 and H2O2