Entropy generation for two-dimensional convective flows in square enclosures