Shannon Miles sentenced to life in prison after plea agreement