Consider a circuit where a cell of emf \( E_0 \) and internal resistance \( r \) is connected across the terminal A and B as shown in the figure. The value of \( R \) for which the power generated in the circuit is maximum, is given by: