converts resistor color code to ohms and vice-versa