Organic–inorganic halide perovskites: an ambipolar class of materials with enhanced photovoltaic performances