A PAC-Bayesian approach to generalization for quantum models