Singularly perturbed elliptic problems with superlinear or asymptotically linear nonlinearities