Positive solutions of nonlocal boundary value problems with singularities