Optimized thermal amplification in a radiative transistor