Functionalized Mesoporous Photonic Crystal Film for Ultrasensitive Visual Detection and Effective Removal of Mercury (II) Ions in Water