WKB and exact wave functions for inverse power-law potentials