Quasi-likelihood estimation for semimartingales