Study on roles of polyacrylonitrile in “salt-in-polymer” and “polymer-in-salt” electrolytes