The science for why your shoelaces get untied