Chemical modifications of perovskite solar cells at interfaces