Framing and localization in Chern-Simons theories with matter