Cournot Competition in Networked Markets