DNA compaction determined by energy dissipation measurements on a quartz-crystal oscillator