Photovoltaic windows by chemical bath deposition