Quantum approximate optimization algorithm for Bayesian network structure learning