Reddening, distance, and stellar content of the young open cluster Westerlund 2