Tuning the optical and magnetic properties of ZnO by Fe3O4