Magnetic barriers and confinement of Dirac-Weyl quasiparticles in graphene