Lentil casserole with sausages, carrots and onions