Magnetic, luminescent Eu-doped Mg-Al layered double hydroxide and its intercalation for ibuprofen.