One-dimensional profile reconstruction using cosine Fourier and cubic B-spline expansions