Unified picture of spin-dependent transport in GMR multilayered structures and bulk ferromagnetic alloys