Applied Materials beats Q2 estimates and forecasts Q3 revenue above Street views, driven by sustained investments in AI infrastructure.