NEW PENALTY FUNCTIONS AND OPTIMAL CONTROL FORMULATION FOR SPACECRAFT ATTITUDE CONTROL PROBLEMS