To elaborate, you'll need homebrew to extract your save - the stuff on the SD card won't work - and Fire Emblem Awakening Save Tool to decompress the save. Arrange your units via skirmish so that the one you want to replace is first on the list and save. Once you've done that, here's a tutorial...