Semiparametric Localized Bandwidth Selection in Kernel Density Estimation