Understanding the nature of Ds(2317) and Ds(2460) through nonleptonic B decays