Spin–orbit Splitting and Magnetism of Icosahedral M@Ag12 Clusters (M = 3d and 4d atoms)