City valedictorians include 12 from Dorchester, Mattapan