Enzyme-mediated ligation methods