(a) The right of election of a surviving spouse may be waived, wholly or partially, before or after marriage, by a written contract, agreement, or waiver signed by the surviving spouse.
(b) A surviving spouse's waiver is not enforceable if the surviving spouse proves that:
(1) He or she did not execute the waiver voluntarily; or