Nuclear medium effects in the single particle description of nucleus-nucleus interaction potential in the continuum