An integrated workflow to automatically fabricate flexible electronics by functional printing and SMT component mounting