IFFair: Influence Function-driven Sample Reweighting for Fair Classification