Impedance matching and matching layers