St Mirren secured their return to the top flight of Scottish football after a goalless draw against Livingston confirmed them as winners of the Championship.