Uniqueness of the solution of electromagnetic boundary-value problems in the presence of lossy and piecewise homogeneous lossless dielectrics