Bayesian Inference of Temporal Task Specifications from Demonstrations