Electric convection in a nematic liquid crystal in a varying electric field