Quasipotential approach to the Coulomb bound state problem for spin-0 and spin-12 particles