Text this: Optimizing Biomethane Production from Industrial Pig Slurry and Wine Vinasse: A Mathematical Approach