Periodic domain walls and ferroelastic bubbles in neodymium pentaphosphate