The vocational programs that tend to attract females also lead to the least-lucrative professions. That’s hurting them—and the economy.