Modeling of Metal and Substrate Losses in CMOS and BiCMOS inductors for RF IC's