Three Essays on Econometrics of Networks