Impact of subsampling and pruning on random forests