Beneficial effects of potassium iodide incorporation on grain boundaries and interfaces of perovskite solar cells