Silver doping of thin CdS films by an ion exchange process