PDB-based protein loop prediction: parameters for selection and methods for optimization