Electrostatic and electrochemical charging mechanisms for electric-double-layer gating media based on a crystalline LaF3 solid electrolyte