A hierarchy of protein patterns robustly decodes cell shape information