High performance and highly functional semiconductor optical amplifiers based on hybrid and monolithic integration