Storing energy with molecular photoisomers