Electrical and optical properties of ZnO films grown by molecular beam epitaxy