Insights for designing mechanochromic spiropyrans from first principles dynamics and minimum energy pathways