Maximum principle for optimal distributed control of viscous weakly dispersive Degasperis–Procesi equation