Boundary Control of Reacting Species in Semi-infinite and Finite Diffusion Processes