Domain inversion by pulse poling in polymer films