Frequency-Domain Model of Longitudinal Mode Interaction in Semiconductor Ring Lasers