Three of Britain's top prosecutors have united to back a change in the law to allow someone who is terminally ill to end their life.