Magnetic properties of two geometrically frustrated compounds : SrHo2O4 and SrGd2O4