Density-functional theory calculations of bare and passivated triangular-shaped ZnO nanowires