New precision measurements of the muonic X-ray transition in 24Mg and 28Si: Vacuum polarisation test and search for muon-hadron interactions beyond QED