Software engineer pleads guilty to stealing trade secrets