Boeing posts first loss since 1997 after 737 Max crisis