Determination of the Distance to M33 Based on the Tip of the Red Giant Branch and the Red Clump