Formation of an interface by competitive erosion