The theorem of Mather on generic projections for singular varieties