Optical properties of amorphous indium nitride films and their electrochromic and photodarkening effects