modified input of get_dihedral() function (coordinates as lists)