Pure and random quantum Ising chain: Shannon and Rényi entropies of the ground state via real space renormalization