Britain pledges to defend Sweden if attacked