Giant magnetoresistance in granular alloys: two-band model