Jeffrey R. Immelt, chairman and chief executive officer of GE, the Boston-based company with operations in energy, health care and aviation, had some harsh words for companies that leave the United States looking for cheap foreign labor or a convenient supply chain network.