Lead-free organic–inorganic tin halide perovskites for photovoltaic applications