Magnon Bose-Einstein condensation at inhomogeneous conditions