Hyperfine induced transitions in He-like, Be-like and Mg-like ions