In-plane anisotropy of the optical and electrical properties of ReS2 and ReSe2 layered crystals