Bound states of the Dirac equation for a class of effective quadratic plus inversely quadratic potentials