Study of structural, optical and electrochemical properties of ZnO nanostructures and ZnO-PANI nanocomposites