Effect of an inhomogeneous exchange field on the proximity effect in disordered superconductor-ferromagnet hybrid structures