When faced with a terminal illness, medical professionals, who know the limits of modern medicine, often opt out of life-prolonging treatment. An American doctor explains why the best death can be the least medicated – and the art of dying peacefully, at home