Enhanced morphological and soft morphological shape decomposition techniques for 2D shape representation