Econometric analysis of network formation models