Electrodeposited semiconducting molybdenum selenide films. II. Optical, electrical, electrochemical and photoelectrochemical solar cell studies