Size functions and morphological transformations