Supersymmetry algebra and BPS states of super Yang-Mills theories on noncommutative tori