Interfaces in lead-free perovskite-inspired solar cells and indoor photovoltaics