Tunable magnetoresistance in thin-film graphite field-effect transistor by gate voltage