Distinct signatures of diversifying selection revealed by genome analysis of respiratory tract and invasive bacterial populations