Multitask methods for predicting molecular properties from heterogeneous data