X-ray studies of magnetism in the 3-d transition metals : from the nanoscale to the ultrafast to the nonlinear limit