Simulation of thin film grain structures—I. Grain growth stagnation