Studies of the magnetic properties and microstructures of two rare earth-transition metal type magnetic alloys