The luminosity–metallicity relation in the local Universe from the 2dF Galaxy Redshift Survey