what is a resistor and what does it do in a circuit carbon resistor thin type resistor buy resistors electronic component carbon