Analysis of the anomalous Hall effect in a double layer of a ferromagnetic and a normal metal