Tony Windsor wins AM after 22-year political career in two parliaments