Generation of uniform photonic balls by template-assisted colloidal crystallization