Periodic solutions for dynamic equations on time scales