Defining subdomains for different materials, but with coefficients that aren't constant

You may want to consider How to split the weak form by subdomains? - #2 by edgar