Text this: Optimal control for combined energy storage and attitude control system (CEACS) in small satellites