Balancing building and maintenance costs in growing transport networks