Distributed Channel Assignment Using a Modified ALOHA Protocol