Cape Coral man sentenced to life for death of girlfriend