Operation of rich single-photon detectors with optically shielded wires in transverse magnetic fields