Deep inelastic scattering from the nuclear medium