Bound states of the Klein-Gordon and Dirac equations for potential V(r) = Ar-2-Br-1