Geometric Optimal Control of the Generalized Lotka--Volterra Model of the Intestinal Microbiome