A semiclassical molecular dynamics of the photochromic ring-opening reaction of spiropyran