Rényi entropies of free bosons on the torus and holography