Optical modulation properties of the Ni-based layered double hydroxides for dual-wavelength Q-switched Er:YAP laser at 2.7 μm