Highly tunable time-reversal-invariant topological superconductivity in topological insulator thin films