Modeling skew-symmetric distributions using B-spline and penalties