Optimal control problems arising in marketing models