A physical model for characteristics of an optical amplifier-switch integrated device