Flow characteristics and tip vortex formation around a NACA 0018 foil with an endplate