Generic projections of singular varieties