Week of disruption at an end after freight train derailment near Ely