Oklahoma man convicted of beating pregnant girlfriend sentenced to 40 years in prison