Application of mutually unbiased bases in quantum information