Exploring the photoactive yellow protein photocycle by combining quantum mechanics and molecular dynamics