Light-induced topological phases in thin films of magnetically doped topological insulators