Dixmier traces as singular symmetric functionals and applications to measurable operators