Retiring SJC Justice Greaney unfazed by critics of gay marriage ruling