Impact of strong magnetic field, baryon chemical potential, and medium anisotropy on polarization and spin alignment of hadrons (The European Physical Journal. C, Particles and Fields.)