Legislation to allow terminally ill people in Scotland to take their own life is being put forward by the Liberal Democrat MSP Liam McArthur.