Visibility of interference fringes near the resolution limit