Simulation and Measurement of Refractive Index Variation in Localized Rapid Heating Molding for Polymer Optics