Influence of growth conditions on the structural, optical, and electrical properties of ZnSe films