Natural convection of nanofluids in enclosures heated laterally and underneath