Collective-variable Monte Carlo simulation of DNA