Anomalously large g factor of single atoms adsorbed on a metal substrate