Competition and quality in regulated markets: a differential game approach