Critical role of water structure around interlayer ions for ion storage in layered double hydroxides