Magnetic X-ray and neutron scattering from holmium and terbium