Realization of resistive switching and magnetoresistance in ZnO/ZnO-Co composite materials