Thermal Effects on Pure and Hybrid Inflation