Demosaic RAW images on the GPU using AHD