Interconversion of multiferroic domains and domain walls