Atomic hydrogen in an inhomogeneous magnetic field: Density profile and Bose-Einstein condensation