Incandescent lamps are nearly pure resistive loads with a power factor of 1. What determines the resistance of the filament?