Natural convection in cavities containing internal sources