Effective optimization of emitters and surface passivation for nanostructured silicon solar cells