Some connections between importance sampling and enhanced sampling methods in molecular dynamics