A New Algorithm to Calculate the Isothermal Moisture Penetration for Periodically Varying Relative Humidity at the Boundary