K-shell Photoionization of Na-like to Cl-like Ions of Mg, Si, S, Ar, and Ca