BPS states on noncommutative tori