Noise effects in the quantum search algorithm from the viewpoint of computational complexity