The Extended Flare in CTA 102 in 2016 and 2017 within a Hadronic Model through Cloud Ablation by the Relativistic Jet