Changes in atomic and electronic structures of amorphous WO3 films due to electrochemical ion insertion