The construction of a vibrating sample magnetometer and a study of magnetic interactions in dilute alloys with atomic order-disorder transitions