High-quality colloidal photonic crystals obtained by optimizing growth parameters in a vertical deposition technique