I am just posting the comment as an answer.  One reference is EGA $\textrm{IV}_2$, Section 6.11, pp. 158-163.