No life will survive the death of the sun — but new life could be born after, new research suggests