Optimization of Multi-time-scale Peak Shaving Considering Controllable Margin of Flexible Load