A System for Optimizing Fertilizer Dosing in Innovative Smart Fertigation Pipelines: Modeling, Construction, Testing and Control