Incommensurability in the frustrated two-dimensional XY model