Photoinduced magnetization switchings in cobalt-doped YIG films