Field-induced two- and three-dimensional colloidal crystals