Thin film circuits