From bulk to (001) surface Fe3O4: electronic properties and water adsorption