How can we determine if a firm is facing a perfectly competitive environment or an imperfectly competitive environment?