Pore-scale modeling and upscaling of nonaqueous phase liquid mass transfer