Master Stability Functions in Complex Networks