Frequency tunable x-ray/γ-ray source via Thomson backscattering on flying mirror from laser foil interaction