The right of a competent, terminally ill person to avoid excruciating pain and embrace a timely and dignified death bears the sanction of history and is implicit in the concept of ordered liberty