Virgin Atlantic has returned to profitability for the first time since 2016, because of a growth in passenger numbers.