Collision-Free Trajectory Optimization in Cluttered Environments with Sums-of-Squares Programming