Market Structure and Firms' R & D Behavior