An S receiver function analysis of the lithospheric structure in South America