Prices and queues as screening devices in competitive markets