Aircraft maker Boeing blames a net loss of $1.6bn (£974m) on rising production costs and poor market conditions.