Pointwise localization in presheaf categories