Public health spending, old-age productivity and economic growth: chaotic cycles under perfect foresight