The manufacturing giant reported strong second quarter results and forecast positive performance for the full year