Sony logs biggest profit in 8 years on restructuring, games