A distance- and orientation-dependent energy function of amino acid key blocks.