Binary optical communication in single-mode and entangled quantum noisy channels