The optical spectra of 3C 227 and other broad-line radio galaxies