Polymer and composite electrolytes