Distorted waves with exact nonlocal exchange: A canonical function approach