Losses due to the inhomogeneous sheath surrounding an antenna in a plasma