Macroscopic approximation methods for the analysis of adaptive networked agent-based models: Example of a two-sector investment model.