Generalized Hamming weights of codes obtained from smooth plane curves