Doping Effect on Interlocked Ferroelectric and Structural Antiphase Domains in YMnO3