Manipulation of exciton spin states in a dilute magnetic semiconductor by nanostructured ferromagnets