An optimal control problem with Hopf bifurcations: An application to the striped venus fishery in the Gulf of Cádiz