Jet formation in bubbles bursting at a free surface