Nonsingular black holes in quadratic Palatini gravity