Natural convection of nanofluids inside a vertical enclosure in the presence of a uniform magnetic field