Dynamical Distance Learning for Unsupervised and Semi-Supervised Skill Discovery