Optimal constants and extremisers for some smoothing estimates