Domain-wall superconductivity in superconductor–ferromagnet hybrids