Magnetic dichroism in core-level photoemission from Gd(0001)