Closure phase in high-resolution optical imaging