Machine learning of optical properties of materials – predicting spectra from images and images from spectra | Synapse