A Brazilian man who killed and dismembered a British teenager has been sentenced to 21 years in prison.