Dynamical properties of photoinduced magnetism and spin-crossover phenomena in Prussian blue analogs