Dependence of the magnetic ordering temperature on hydorstatic pressure for the ternary intermetallic compounds GdAgMg, GdAuMg, EuAgMg, and EuAuMg