Business cycles and research investment