If a simple pendulum of mass m is released from a horizontal position, find the tension in the string as a function of the angle θ with the horizontal.