Structure of the Medicago truncatula LYR4 ectodomain