Alchemical molecular dynamics for inverse design