Bifurcations of Invariant Tori and Subharmonic Solutions for Periodic Perturbed Systems