Essays On Networks In Macroeconomics And Finance