Measurement of L-shell transitions in M-shell ions in the laboratory and identification in stellar coronae