Local atomic order and magnetism in non-crystalline alloys