UN extends Nato force in Afghanistan for last time