Interaction between metamaterial resonators and intersubband transitions in semiconductor quantum wells