On the parameters influencing the deposition of polystyrene colloidal crystals