Highly stable and efficient perovskite solar cells passivated by a functional amorphous layer