Optimization of ZnO for front and rear contacts in a-Si solar cells