Optimized ion-conductive pathway in UV-cured solid polymer electrolytes for all-solid lithium/sodium ion batteries