A multicanonical molecular dynamics method and its applications to biomolecular systems