Investigations on electrical optical and photoelectrochemical properties of certain transition metal dichalcocenides