Critical Role of Functional Groups in Defect Passivation and Energy Band Modulation in Efficient and Stable Inverted Perovskite Solar Cells Exceeding 21% Efficiency.