The parameters of subcodes of algebraic-geometric codes over prime subfields