Bayesian Optimization of Function Networks with Partial Evaluations