Perovskite-perovskite tandem photovoltaics with optimized band gaps