Large N matrix models for 3 d N = 2 theories : twisted index , free energy and black holes