Gravar-mail: Constructing Templates for Protein Structure Prediction by Simulation of Protein Folding Pathways