A semiparametric Bayesian model for spatiotemporal extremes