Double charge-exchange reaction of pions on 12C