The durability of natural infection and vaccine-induced immunity against future infection by SARS-CoV-2