Stable lead-free perovskite solar cells: A first-principles investigation.