Quench action and Rényi entropies in integrable systems