Nonnegative solutions to some singular second-order boundary value problems