Linear codes of 2-designs associated with subcodes of the ternary generalized Reed-Muller codes