Essays on firm-level dynamics of innovation