Fabrication and analysis of emerging electrochromic nanomaterial membrane device for smart applications