Solution-based Ag-doped ZnSe thin films with tunable electrical and optical properties