Studies on the properties of cdS films deposited from pH-controlled growth solutions