Colloidal photonic crystals with controlled morphology