You are given a 2D grid of integers representing a spreading process. Each cell has one of three values:
At each time step, every filled cell spreads to its directly adjacent empty cells (up, down, left, right). Walls cannot be entered or crossed.
Write a function min_fill_time(grid) that returns the minimum number of time steps required for every empty cell to become filled. If at least one empty cell can never be filled, return -1. If there are no empty cells, return 0.