Jelena Ostapenko shocked Johanna Konta in straight sets to reach the quarter-finals at the Birmingham Open on Wednesday.