Minimax estimation with thresholding and its application to wavelet analysis