Applications of soft x-ray magnetic dichroism