Molecular Engineering of Triphenylamine-Based Non-Fullerene Electron-Transport Materials for Efficient Rigid and Flexible Perovskite Solar Cells.