Alexander Wilson, who also worked as a train manager, was given a 20-year extended sentence