what is an intermediate in chemistry