The distances to the X-ray binaries LSI +61° 303 and A0535+262