Tech layoffs top 500,000 after hidden tax rule guts R&D write offs and pushes firms to offshore jobs and cut U.S. engineers