Sliding-Mode Controller Design with Internal Model Principle for Systems Subject to Periodic Signals