Boeing names new CEO as it posts loss of more than $1.4 billion in second quarter