ASML and TSMC report earnings this week, offering a crucial test of the AI semiconductor boom's profitability after a recent tech selloff.