On conditions of optimality for singular control problems