Defect trapping states and charge carrier recombination in organic–inorganic halide perovskites