Automation of thin film deposition process based on magnetron sputtering