World number 197 Bethanie Mattek-Sands shocked third seed Anastasia Pavlyuchenkova in straight sets to book her place in the final of the Malaysian Open.