Electrochemical and spectroscopic studies of polymethacrylonitrile based electrolytes