Text this: Preparation of Mg-doped coffee waste for efficient removal of methylene blue and lead from water