The Painlevé II hierarchy: geometry and applications