During what years did the Republican, in which John Lynch beat in the 2008 New Hampshire gubernatorial election, serve on the New Hampshire House of Representatives?