Ag2V4O11: from primary to secondary battery