TEP restores power to thousands of people