Capacity investment and green R&D in a dynamic oligopoly under the potential shift in environmental damage