Coexistence of magnetism and superconductivity in separate layers of the iron-based superconductor Li 1 -x Fe x (OH ) Fe 1 -y Se