Tuning magnetoresistance and electrical resistivity by enhancing localization length in polyaniline and carbon nanotube composites