Method of local‐scaling transformations and density functional theory in quantum chemistry. III. The energy density functional: Spin‐restricted approach