Microstructural analysis and modeling of RuO2 thin film resistors