On the choice of the optimal forcing waveform for a biochemical reactor using the pi-criterion