GM awards A123 contract for battery packs