Automatic Generation of Thin Film Process Flows — Part I: Basic Algorithms