Preparation of MoSe2 nano-islands array embedded in a TiO2 matrix for photo-regulated resistive switching memory