Input trajectory shaping based on a B-spline model for the scanning control of a piezoelectric actuator in external-cavity diode laser