Analog quantum simulation of (1+1)-dimensional lattice QED with trapped ions