The linear extension diameter of a poset