Study of 5d magnetism in rare-earth-transition-metal (Fe, Co) intermetallic compounds by magnetic circular X-ray dichroism