Strong profits will carry stocks through the dog days of August and beyond