CdO-Fe3O4 nanocomposite with enhanced magnetic and photocatalytic properties