Venus Williams’ short but unexpected run at the Birmingham Classic comes to an end with defeat by second seed Jelena Ostapenko in a three-set thriller.