MAGIC: Multi-task Gaussian process for joint imputation and classification in healthcare time series