Stanford study finds hope for coastal communities amid a changing ocean