Research on an adaptive gray stretch algorithm for digital low-light-level devices