Localized orbitals for arbitrary molecular wave functions.