Magnetic proximity effect on excitonic spin states in Mn-doped layered hybrid perovskites.