Correlation between structural and electrical properties of InN thin films prepared by molecular beam epitaxy