Calculation of π− photoproduction in 12C leading to the 12N ground state