Text this: Sufficient optimality conditions for a class of epidemic problems with control on the boundary