Photo- and thermostimulated luminescence of ZnO nanowires