Britain's queen shakes hands with ex-IRA chief