Rayleigh–Taylor stability with mass and heat transfer