A link between the semimajor axis of extrasolar gas giant planets and stellar metallicity