Closed Fredholm and semi-Fredholm operators, essential spectra and perturbations