Natural convection heat and momentum transfer in square cavities discretely heated from below and cooled from above and one side