Synthesis and microstructure-dependent photoactivated properties of three-dimensional cadmium sulfide crystals