Sn-doped BiOCl for photoelectrochemical activities and photocatalytic dye degradation under visible light