Selective reduction and cleavage of the N-N bond of fused tetrahydropyridazines: a route to functionalised lactams