On a lossy electric-magnetic uniaxial medium and its applications to boundary conditions