Option hedging for semimartingales