TAM returns to profit but reports declining EBIT