SMIC Q2 revenue tops $3 billion as AI demand lifts margins