Derivation of rules for comparative protein modeling from a database of protein structure alignments