Text this: Curve fitting by rational cubic Bézier with C1 and G1 continuity using metaheuristics methods