General relationships between dihedral angles in systems with an intermetallic compound