Causal reinforcement learning based on Bayesian networks applied to industrial settings