Method for BGR's second-order temperature compensation using resistor combinations with specified temperature coefficients