Geometric Invariant Theory for polarized curves