Lipase catalysed acylation of hydroxylamine and hydrazine derivatives