Armed attacks in Mexico leave 22 dead, including 12 police