Electric field-controlled transformation of the eigenmodes in a twisted-nematic Fabry–Pérot cavity