Reconstruction of current profile parameters and plasma shapes in tokamaks