Spanish Lentil Soup with Sausages and Apples