Structural and electronic properties of hybrid perovskites for high-efficiency thin-film photovoltaics from first-principles | Synapse