Precursor recommendation for inorganic synthesis by machine learning materials similarity from scientific literature