Size-dependent electronic structures of ZnO nanowires