On the discrimination between magnetospheric and ionospheric contributions on the ground manifestation of sudden impulses