Theory of optimal harvesting for a size structured model of fish