Synthesis of cadmium sulfide nanosheets for smart photocatalytic and sensing applications