England coach Stuart Lancaster was impressed by the mental strength shown by his players in their final Test against South Africa on Saturday.