Preparation and readout of a Josephson vortex in a double-well potential