Methylammonium fragmentation in amines as source of localized trap levels and the healing role of Cl in hybrid lead-iodide perovskites