A Multi-layer Bus Architecture Optimization Algorithm for MPSoC in Embedded Systems