A New Semidefinite Relaxation for Linear and Piecewise-Affine Optimal Control with Time Scaling