Electrochromism and photochromism in amorphous molybdenum oxide films