Ground state solutions and multiple solutions for nonhomogeneous Schrödinger equations with Berestycki–Lions type conditions