Origin of the weak ferromagnetism in Gd2CuO4.