Dimensions of new fractal functions and associated measures