A Bayesian Flow Network Framework for Chemistry Tasks