Brexit is a bad idea, but so is the European Union itself