Former Spice Girl to join as judge for 'America's Got Talent'