Fabrication and characterization of ordered macroporous semiconductors CdS by colloidal crystal template