Spin‐unrestricted time‐dependent Hartree–Fock theory of frequency‐dependent linear and nonlinear optical properties