Effect of the structure of lead iodine perovskites on the photovoltaic efficiencies