Essays On The Econometrics Of Social Networks And Peer Effects