Magic-wave-induced $^1S_0-^3P_0$ transition in even isotopes of alkaline-earth-like atoms