Calculate the dihedral angles between amino acid residues in protein