Text this: Capillary condensation-driven growth of perovskite nanowire arrays for multi-functional photodetector