Stable thin film resistors using double layer structure