A novel method of constructing compactly supported orthogonal scaling functions from splines