England hold their nerve to level the series against South Africa with a thrilling two-run victory in the second Twenty20 international in Durban.