Regulating silver nanowire size enables efficient photoelectric conversion