Existence of three nontrivial solutions for a class of superlinear elliptic equations