A photonic chip-based machine learning approach for the prediction of molecular properties