Magnetic properties of Co- and Mn-implanted BaTiO3, SrTiO3 and KTaO3