How advanced materials M&A performed in the mining industry in Q2 2024