Characterizations of fundamental scaling functions and wavelets