Mass-luminosity relation for FGK main sequence stars: metallicity and age contributions