Template-directed colloidal crystallization