'Relentless' heatwaves scorch southern China, test power grids