N = 2 Supersymmetric AdS4 Solutions of M-theory