Tailoring light-matter interaction in intersubband microcavities