Ghosting and its recovery mechanisms in multilayer amorphous Selenium X-ray detectors