Barcelona's Raphinha scored deep into stoppage time to hand his side a dramatic 5-4 comeback win at Benfica and a place in the Champions League last 16.