Designing experiments on networks