Dominant folding pathways of a peptide chain from ab initio quantum-mechanical simulations