Universal chemomechanical design rules for solid-ion conductors to prevent dendrite formation in lithium metal batteries