Electric-field-mediated instability modes and Fréedericksz transition of thin nematic films