ABJM theory with mass and FI deformations and quantum phase transitions