Singularities of smooth functions and maps