Constrained optimal control of monotone systems with applications to battery fast-charging