ESR study of Mn doped II–VI and III–V DMS