A dynamic decision-theoretic model of technology adoption for the competitive firm