Characterization of dark current non-uniformities in charge-coupled devices