Landau levels and snake states of pseudo-spin-1 Dirac-like electrons in gapped Lieb lattices