Electromechanical instability and oscillating deformations in electroactive polymer films