Correlating structural and photochemical heterogeneity in cyanobacteriochrome NpR6012g4