Solid‐State Dual Function Electrochemical Devices: Energy Storage and Light‐Emitting Applications