Ugandan president pledges free, fair general elections