Interface Energetics: The Key to Efficient Organic and Perovskite Solar Cells