MEASUREMENT OF MAGNETIC AND ELECTRIC-FIELD INHOMOGENEITIES IN A TIME PROJECTION CHAMBER USING LASER TRACKS