Bond and site color-avoiding percolation in scale-free networks