Free convection in a square cavity with a partially heated wall and a cooled top