Boeing posts $4.16 billion loss on problems with its 787 jet