Angular momentum of systems of electric and magnetic charges and of singular flux surfaces