Mathematical models for simulation and control of bleaching stages