A Bayesian Approach for Predicting Building Cooling and Heating Consumption and Applications in Fault Detection