Dynamic templating of colloidal patterns in three dimensions with nonuniform electric fields.