Principled Representation Learning for Entity Alignment