Thermosolutal natural convection in a vertically layered fluid-porous medium heated from the side