Long-range p–d exchange interaction in a ferromagnet–semiconductor hybrid structure