Man sentenced to 18 months in HIV case involving 2 Md. women