“I would have loved to share the stage with you again but it wasn’t to be,” Tomlinson wrote, thanking Payne for “shaping” One Direction