Periodic Solutions for a Class of Singular Hamiltonian Systems on Time Scales