Macy’s returns to profit on strong sales