Firm dynamics and markup variations: Implications for sunspot equilibria and endogenous economic fluctuations