Sales of commercial aircraft boost profits at the US plane manufacturer Boeing as military sales fall.