Boundedness of Operators on Local Hardy Spaces and Periodic Solutions of Stochastic Partial Differential Equations with Regime-Switching